<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Menu
 *
 * @ORM\Table(name="menu", options={"comment":"菜单"})
 * @ORM\Entity
 */
class Menu
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=32, options={"comment": "名称"})
     */
    private $title;

    /**
     * @var string
     *
     * @ORM\Column(name="url", type="string", length=255, options={"comment": "url", "default": ""})
     */
    private $url;

    /**
     * @var string
     *
     * @ORM\Column(name="url_params", type="string", length=255, options={"comment": "url参数，序列化数据", "default": ""})
     */
    private $urlParams;

    /**
     * @var string
     *
     * @ORM\Column(name="tag", type="string", length=128, options={"comment": "tag标签", "default": ""})
     */
    private $tag;

    /**
     * @var string
     *
     * @ORM\Column(name="icon", type="string", length=128, options={"comment": "icon图标", "default": ""})
     */
    private $icon;

    /**
     * @var int
     *
     * @ORM\Column(name="parent_id", type="integer", options={"comment": "父级ID", "default": 0})
     */
    private $parentId;

    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", options={"comment": "排序，序号小的靠前", "default": 0})
     */
    private $sortOrder;

    /**
     * @var bool
     *
     * @ORM\Column(name="is_bind_permission", type="boolean", options={"comment": "是否绑定权限", "default": false})
     */
    private $isBindPermission;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Menu
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set url
     *
     * @param string $url
     *
     * @return Menu
     */
    public function setUrl($url)
    {
        $this->url = $url;

        return $this;
    }

    /**
     * Get url
     *
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Set urlParams
     *
     * @param string $urlParams
     *
     * @return Menu
     */
    public function setUrlParams($urlParams)
    {
        $this->urlParams = $urlParams;

        return $this;
    }

    /**
     * Get urlParams
     *
     * @return string
     */
    public function getUrlParams()
    {
        return $this->urlParams;
    }

    /**
     * Set tag
     *
     * @param string $tag
     *
     * @return Menu
     */
    public function setTag($tag)
    {
        $this->tag = $tag;

        return $this;
    }

    /**
     * Get tag
     *
     * @return string
     */
    public function getTag()
    {
        return $this->tag;
    }

    /**
     * Set icon
     *
     * @param string $icon
     *
     * @return Menu
     */
    public function setIcon($icon)
    {
        $this->icon = $icon;

        return $this;
    }

    /**
     * Get icon
     *
     * @return string
     */
    public function getIcon()
    {
        return $this->icon;
    }

    /**
     * Set parentId
     *
     * @param integer $parentId
     *
     * @return Menu
     */
    public function setParentId($parentId)
    {
        $this->parentId = $parentId;

        return $this;
    }

    /**
     * Get parentId
     *
     * @return int
     */
    public function getParentId()
    {
        return $this->parentId;
    }

    /**
     * Set sortOrder
     *
     * @param integer $sortOrder
     *
     * @return Menu
     */
    public function setSortOrder($sortOrder)
    {
        $this->sortOrder = $sortOrder;

        return $this;
    }

    /**
     * Get sortOrder
     *
     * @return int
     */
    public function getSortOrder()
    {
        return $this->sortOrder;
    }

    /**
     * Set isBindPermission
     *
     * @param boolean $isBindPermission
     *
     * @return Menu
     */
    public function setIsBindPermission($isBindPermission)
    {
        $this->isBindPermission = $isBindPermission;

        return $this;
    }

    /**
     * Get isBindPermission
     *
     * @return bool
     */
    public function getIsBindPermission()
    {
        return $this->isBindPermission;
    }
}

